import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 工艺路线
 * */
// 创建
export const spinSpecPathCreate = (data) => postRequest('/spin/spec-path/create', data);

// 更新
export const spinSpecPathUpdate = (data) => putRequest('/spin/spec-path/update', data);

// 删除
export const spinSpecPathDelete = (params) => deleteRequest('/spin/spec-path/delete', params);

// 获得
export const spinSpecPathGet = (params) => getRequest('/spin/spec-path/get', params);

// 获得分页
export const spinSpecPathPage = (params) => getRequest('/spin/spec-path/page', params);

// 导出 Excel
export const spinSpecPathExportExcel = (params) => getRequest('/spin/spec-path/export-excel', params);

// 提交
export const spinSpecPathSubmitAudit = (params) => postRequest('/spin/spec-path/submit-audit', params);
// 撤销提交
export const spinSpecPathClearSubmitAudit = (params) => postRequest('/spin/spec-path/clear-submit-audit', params);
// 审核
export const spinSpecPathAudit = (params) => postRequest('/spin/spec-path/audit', params);
// 撤销审核
export const spinSpecPathClearAudit = (params) => postRequest('/spin/spec-path/clear-audit', params);
// 保存并审核
export const spinSpecPathCreateAudit = (params) => postRequest('/spin/spec-path/create-audit', params);
// 更新并审核
export const spinSpecPathUpdateAudit = (params) => putRequest('/spin/spec-path/update-audit', params);
// 关闭
export const spinSpecPathClose = (params) => postRequest('/spin/spec-path/close', params);
// 撤销关闭
export const spinSpecPathClearClose = (params) => postRequest('/spin/spec-path/clear-close', params);
